import { _decorator, Component, Label, Node } from 'cc';
import { IPlayer } from '../Common';
const { ccclass, property } = _decorator;

@ccclass('PlayerMgr')
export class PlayerMgr extends Component {
    init({id,rid,nickname}:IPlayer) {
        const label = this.getComponent(Label);
        label.string = nickname;
        this.node.active = true;
    }
}


